import request from '@/utils/request'

// 查询biz_功能菜单列表
export function listFunctionMenu(query) {
  return request({
    url: '/biz/functionMenu/list',
    method: 'get',
    params: query
  })
}

// 查询biz_功能菜单详细
export function getFunctionMenu(id) {
  return request({
    url: '/biz/functionMenu/' + id,
    method: 'get'
  })
}

// 新增biz_功能菜单
export function addFunctionMenu(data) {
  return request({
    url: '/biz/functionMenu',
    method: 'post',
    data: data
  })
}

// 修改biz_功能菜单
export function updateFunctionMenu(data) {
  return request({
    url: '/biz/functionMenu',
    method: 'put',
    data: data
  })
}

// 删除biz_功能菜单
export function delFunctionMenu(id) {
  return request({
    url: '/biz/functionMenu/' + id,
    method: 'delete'
  })
}
